package cn.buddha.jesj.thread.executor;

import lombok.extern.slf4j.Slf4j;

/**
 * @author shihao
 * @description 嘿嘿计算
 */
@Slf4j
public class CalcHei implements CalcInterface {

    /**
     * 假设耗时 5 秒
     */
    @Override
    public String calc(String say) {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            throw new RuntimeException("CalcHei sleep interrupted exception");
        }

        log.info("{} executing", Thread.currentThread().getName());

        return "1.2";
    }

}
